package com.dropdb.demo.controller.admin;

import com.dropdb.demo.bean.bo.DashboardBO;
import com.dropdb.demo.bean.vo.BaseRespVO;
import com.dropdb.demo.service.DashboardService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author:tanxin Desc:
 * @date:2020/6/26 17:48
 */
@RestController
@RequestMapping("/admin/")
public class AdminDashboardController {

    @Resource
    DashboardService dashboardService;
    @RequestMapping("dashboard")
    public BaseRespVO query(){
        DashboardBO dashboardBO = dashboardService.queryCount();
        return BaseRespVO.ok(dashboardBO);
    }
}
